<?php echo $this->atheme->group_select2('view','Loại','','', 
	array(
		'comment' => 'Comment',
		'fanpage' => 'Fan page',
	),@$config['view'],' id="cat-view"'); ?>
	
	
<div data-type="fanpage"  style="display: block;">
<?php echo $this->atheme->group_input2('link', 'Link fanpage', '', 'span6 ', @$config['link'], 'text', ''); ?>
	
<?php echo $this->atheme->group_input2('height', 'Chiều cao', '', 'span6 ', @$config['height'], 'text', ''); ?>
<?php echo $this->atheme->group_input2('showface', 'Hiện avatar', '', ' ', '', 'checkbox',(@ $config['showface'] =='true') ? ' checked=checked ' : ''); ?>
<?php echo $this->atheme->group_input2('showheader', 'Hiện tiêu đề', '', ' ', '', 'checkbox',(@ $config['showheader'] =='true') ? ' checked=checked ' : ''); ?>
<?php echo $this->atheme->group_input2('showpost', 'Hiện page post', '', ' ', '', 'checkbox',(@ $config['showpost'] =='true') ? ' checked=checked ' : ''); ?>
<?php echo $this->atheme->group_input2('showborder', 'Hiện border', '', ' ', '', 'checkbox',(@ $config['showborder'] =='true') ? ' checked=checked ' : ''); ?>

</div>
<div data-type="comment"  style="display: block;">

<?php echo $this->atheme->group_input2('num', 'Số lượng comment', '', 'span6 ', @$config['num'], 'text', ''); ?>

</div>

<?php echo $this->atheme->group_input2('width', 'Chiều rộng', '', 'span6 ', @$config['width'], 'text', ''); ?>
<?php echo $this->atheme->group_select2('color','Theme màu','','', 
	array(
		'dark' => 'Tối',
		'light' => 'Sáng',
	),@$config['color'],'');?>
<?php //data-type="home";?>

<script type="text/javascript">
$(function (){
	$('[name="view"]').change(function (){
		$('[data-type]').hide();
		$('[data-type="'+$(this).val()+'"]').show();
	});
	$('[name="view"]').change();
});
</script>